package com.anuyun.ms.common;

import com.anuyun.ms.constant.ResultConstant;

public class BusinessException extends RuntimeException {
	
	
	private static final long serialVersionUID = 8557284911281337575L;
	
	
	private int code;
	private String message;
	
	public BusinessException(String message) {
		this.code = ResultConstant.E;
		this.message = message;
	}

	public BusinessException(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public BusinessException(String message, Throwable cause) {
		super(message, cause);
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}





}
